package com.itc.bpm.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.fasterxml.jackson.databind.node.ObjectNode;
import com.itc.bpm.bean.BpmTaskFormValue;

import java.util.List;

public interface BpmTaskFormValueService extends IService<BpmTaskFormValue> {
    /**
     * 查询当前任务最新的记录
     * @param taskId
     * @return
     */
    BpmTaskFormValue findLastRecord(String taskId);

    /**
     * 查询对应任务全部填报记录
     * @param taskId
     * @return
     */
    List<ObjectNode> selectTaskHistoryData(String taskId);

    BpmTaskFormValue findRebackLastRecord(String taskId);
}
